package com.sfx.concurrent.demo.concurrent.pattern.MessageQueue;

/**
 * 消息不能被该表->不能被子类覆盖, 只有get方法->只能获取到消息id/val
 */
public final class Message {

    private int id;
    private String val;

    public Message(int id, String val) {
        this.id = id;
        this.val = val;
    }

    public int getId() {
        return id;
    }

    public String getVal() {
        return val;
    }
}